<template>
	<view>
		<image style="display: :block;width: 100%;" mode="widthFix" :src="activityDetail.desc_img" />
	</view>
</template>

<script>
	import {
		getPlatformActivity
	} from "@/api/activity";
	import PageExposure from "@/mixins/page_exposure.js"

	export default {
		mixins: [PageExposure],
		data() {
			return {
				activityDetail: {}
			}
		},
		async onLoad(options) {
			this.getActivities(options.id)
		},
		methods: {
			async getActivities(id) {
				const data = await getPlatformActivity({
					page: 1,
					pagesize: 1,
					id
				});
				const _data = data[0] || {}
				uni.setNavigationBarTitle({
					title: _data.name
				})
				this.activityDetail = _data;
			},
		}
	}
</script>

<style>

</style>